package com.yuantu.judiciary.model.domain;

import com.yuantu.judiciary.model.BaseDO;
import com.yuantu.judiciary.model.enums.InviteCodeType;
import lombok.Data;
import org.hibernate.annotations.Comment;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Date;

/**
 * 邀请码信息表
 *
 * @author syw
 * @since 2023-06-12
 **/
@Data
@Entity
@DynamicUpdate
@Table(name = "invite_record")
public class InviteRecordDO extends BaseDO {

    /**
     * 邀请码类型
     */
    @Enumerated(EnumType.STRING)
    @Column(length = 10, nullable = false)
    @Comment("邀请码类型")
    private InviteCodeType type;

    /**
     * 邀请码
     */
    @Comment("邀请码")
    private String inviteCode;

    /**
     * 组织id
     */
    @Comment("组织id")
    private Long organizationId;

    /**
     * 邀请码使用时间
     */
    @Comment("邀请码使用时间")
    private Date inviteTime;

    private Boolean isPay;


    private String shareType;


    private Integer useTimes;



}
